/**
 * Created by Administrator on 2017/9/17.
 */
import React from 'react';

const Input = ({onChange,onInputSubmit,value}) => {
    return (
        <div>
            <form className="form-inline">
                <div className="form-group">
                    <label
                        htmlFor="listItemInput">
                        输入添加项
                    </label>
                    <input
                        type="text"
                        className="form-control"
                        id="listItemInput"
                        placeholder="添加"
                        onChange={onChange}
                        value={value}
                        style={{margin:'0 5px'}}
                    />
                    <button className="btn btn-primary" onClick={onInputSubmit}>
                        确认
                    </button>
                </div>
            </form>
        </div>
    );
};

export default Input;